.class public Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;
.super Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity;
.source "PictureGalleryActivity.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/brixd/niceapp/community/activity/PictureGalleryActivity$PictureViewPagerAdapter;
    }
.end annotation


# static fields
.field public static final EXTRA_KEY_CUR_POSITION:Ljava/lang/String; = "CurrentPos"

.field public static final EXTRA_KEY_LAST_SELECTED_COUNT:Ljava/lang/String; = "LastSelectedCount"

.field public static final EXTRA_KEY_PICTURES:Ljava/lang/String; = "Pictures"

.field public static final EXTRA_KEY_SELECT_MODE:Ljava/lang/String; = "IsSelectMode"


# instance fields
.field private mAllPageTxt:Landroid/widget/TextView;

.field private mAnimatingViewSize:Ljava/util/concurrent/atomic/AtomicInteger;

.field private mCheckBox:Landroid/widget/CheckBox;

.field private mCurPageTxt:Landroid/widget/TextView;

.field private mCurrentPos:I

.field private mImageBtnDelete:Landroid/widget/ImageView;

.field private mImageLoader:Lcom/nostra13/universalimageloader/core/ImageLoader;

.field private mIsDirty:Z

.field private mIsSelectMode:Z

.field private mOptions:Lcom/nostra13/universalimageloader/core/DisplayImageOptions;

.field private mPageCount:Landroid/view/View;

.field private mPictures:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Lcom/brixd/niceapp/community/model/PictureModel;",
            ">;"
        }
    .end annotation
.end field

.field private mSelectedCount:I

.field private mSetCoverBtn:Landroid/widget/Button;

.field private mViewPager:Landroid/support/v4/view/ViewPager;


# direct methods
.method public constructor <init>()V
    .registers 2

    .prologue
    const/4 v0, 0x0

    .line 40
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity;-><init>()V

    .line 48
    iput v0, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mSelectedCount:I

    .line 49
    iput v0, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mCurrentPos:I

    .line 54
    iput-boolean v0, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mIsDirty:Z

    .line 343
    return-void
.end method

.method static synthetic access$000(Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;)Ljava/util/ArrayList;
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;

    .prologue
    .line 40
    iget-object v0, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mPictures:Ljava/util/ArrayList;

    return-object v0
.end method

.method static synthetic access$100(Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;)Z
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;

    .prologue
    .line 40
    iget-boolean v0, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mIsSelectMode:Z

    return v0
.end method

.method static synthetic access$1000(Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;)Ljava/util/concurrent/atomic/AtomicInteger;
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;

    .prologue
    .line 40
    iget-object v0, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mAnimatingViewSize:Ljava/util/concurrent/atomic/AtomicInteger;

    return-object v0
.end method

.method static synthetic access$1100(Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;)Lcom/nostra13/universalimageloader/core/DisplayImageOptions;
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;

    .prologue
    .line 40
    iget-object v0, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mOptions:Lcom/nostra13/universalimageloader/core/DisplayImageOptions;

    return-object v0
.end method

.method static synthetic access$1200(Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;)Lcom/nostra13/universalimageloader/core/ImageLoader;
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;

    .prologue
    .line 40
    iget-object v0, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mImageLoader:Lcom/nostra13/universalimageloader/core/ImageLoader;

    return-object v0
.end method

.method static synthetic access$1300(Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;)V
    .registers 1
    .param p0, "x0"    # Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;

    .prologue
    .line 40
    invoke-direct {p0}, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->toogleActionBtnStatus()V

    return-void
.end method

.method static synthetic access$200(Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;)Landroid/widget/CheckBox;
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;

    .prologue
    .line 40
    iget-object v0, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mCheckBox:Landroid/widget/CheckBox;

    return-object v0
.end method

.method static synthetic access$300(Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;Z)V
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;
    .param p1, "x1"    # Z

    .prologue
    .line 40
    invoke-direct {p0, p1}, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->updateSetBCoverBtnStatus(Z)V

    return-void
.end method

.method static synthetic access$400(Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;I)V
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;
    .param p1, "x1"    # I

    .prologue
    .line 40
    invoke-direct {p0, p1}, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->updatePageCount(I)V

    return-void
.end method

.method static synthetic access$500(Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;)Landroid/app/Activity;
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;

    .prologue
    .line 40
    invoke-virtual {p0}, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->getActivity()Landroid/app/Activity;

    move-result-object v0

    return-object v0
.end method

.method static synthetic access$600(Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;)I
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;

    .prologue
    .line 40
    iget v0, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mSelectedCount:I

    return v0
.end method

.method static synthetic access$604(Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;)I
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;

    .prologue
    .line 40
    iget v0, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mSelectedCount:I

    add-int/lit8 v0, v0, 0x1

    iput v0, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mSelectedCount:I

    return v0
.end method

.method static synthetic access$606(Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;)I
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;

    .prologue
    .line 40
    iget v0, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mSelectedCount:I

    add-int/lit8 v0, v0, -0x1

    iput v0, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mSelectedCount:I

    return v0
.end method

.method static synthetic access$700(Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;)Landroid/support/v4/view/ViewPager;
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;

    .prologue
    .line 40
    iget-object v0, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mViewPager:Landroid/support/v4/view/ViewPager;

    return-object v0
.end method

.method static synthetic access$802(Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;Z)Z
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;
    .param p1, "x1"    # Z

    .prologue
    .line 40
    iput-boolean p1, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mIsDirty:Z

    return p1
.end method

.method static synthetic access$900(Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;)Landroid/app/Activity;
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;

    .prologue
    .line 40
    invoke-virtual {p0}, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->getActivity()Landroid/app/Activity;

    move-result-object v0

    return-object v0
.end method

.method private animateAlpha(Landroid/view/View;FF)Landroid/animation/ObjectAnimator;
    .registers 8
    .param p1, "view"    # Landroid/view/View;
    .param p2, "from"    # F
    .param p3, "to"    # F

    .prologue
    .line 258
    const-string v1, "Alpha"

    const/4 v2, 0x2

    new-array v2, v2, [F

    const/4 v3, 0x0

    aput p2, v2, v3

    const/4 v3, 0x1

    aput p3, v2, v3

    invoke-static {p1, v1, v2}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Ljava/lang/String;[F)Landroid/animation/ObjectAnimator;

    move-result-object v0

    .line 259
    .local v0, "animator":Landroid/animation/ObjectAnimator;
    new-instance v1, Landroid/view/animation/AccelerateDecelerateInterpolator;

    invoke-direct {v1}, Landroid/view/animation/AccelerateDecelerateInterpolator;-><init>()V

    invoke-virtual {v0, v1}, Landroid/animation/ObjectAnimator;->setInterpolator(Landroid/animation/TimeInterpolator;)V

    .line 260
    const-wide/16 v2, 0x12c

    invoke-virtual {v0, v2, v3}, Landroid/animation/ObjectAnimator;->setDuration(J)Landroid/animation/ObjectAnimator;

    .line 261
    new-instance v1, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity$5;

    invoke-direct {v1, p0, p3, p1}, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity$5;-><init>(Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;FLandroid/view/View;)V

    invoke-virtual {v0, v1}, Landroid/animation/ObjectAnimator;->addListener(Landroid/animation/Animator$AnimatorListener;)V

    .line 290
    invoke-virtual {v0}, Landroid/animation/ObjectAnimator;->start()V

    .line 291
    return-object v0
.end method

.method private getSelectedCount()I
    .registers 4

    .prologue
    .line 312
    const/4 v0, 0x0

    .line 313
    .local v0, "count":I
    const/4 v1, 0x0

    .local v1, "i":I
    :goto_2
    iget-object v2, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mPictures:Ljava/util/ArrayList;

    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v2

    if-ge v1, v2, :cond_1d

    .line 314
    iget-object v2, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mPictures:Ljava/util/ArrayList;

    invoke-virtual {v2, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/brixd/niceapp/community/model/PictureModel;

    invoke-virtual {v2}, Lcom/brixd/niceapp/community/model/PictureModel;->isChecked()Z

    move-result v2

    if-eqz v2, :cond_1a

    .line 315
    add-int/lit8 v0, v0, 0x1

    .line 313
    :cond_1a
    add-int/lit8 v1, v1, 0x1

    goto :goto_2

    .line 319
    :cond_1d
    return v0
.end method

.method private initData()V
    .registers 5

    .prologue
    const/4 v3, 0x0

    const/4 v2, 0x1

    .line 93
    invoke-virtual {p0}, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string v1, "Pictures"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getParcelableArrayListExtra(Ljava/lang/String;)Ljava/util/ArrayList;

    move-result-object v0

    iput-object v0, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mPictures:Ljava/util/ArrayList;

    .line 94
    invoke-virtual {p0}, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string v1, "CurrentPos"

    invoke-virtual {v0, v1, v3}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v0

    iput v0, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mCurrentPos:I

    .line 95
    invoke-virtual {p0}, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string v1, "IsSelectMode"

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result v0

    iput-boolean v0, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mIsSelectMode:Z

    .line 96
    invoke-static {}, Lcom/nostra13/universalimageloader/core/ImageLoader;->getInstance()Lcom/nostra13/universalimageloader/core/ImageLoader;

    move-result-object v0

    iput-object v0, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mImageLoader:Lcom/nostra13/universalimageloader/core/ImageLoader;

    .line 97
    new-instance v0, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    invoke-direct {v0}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;-><init>()V

    .line 98
    invoke-virtual {v0, v2}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->resetViewBeforeLoading(Z)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    move-result-object v0

    invoke-virtual {v0, v2}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->cacheInMemory(Z)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    move-result-object v0

    .line 99
    invoke-virtual {v0, v2}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->cacheOnDisc(Z)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    move-result-object v0

    sget-object v1, Lcom/nostra13/universalimageloader/core/assist/ImageScaleType;->EXACTLY:Lcom/nostra13/universalimageloader/core/assist/ImageScaleType;

    .line 100
    invoke-virtual {v0, v1}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->imageScaleType(Lcom/nostra13/universalimageloader/core/assist/ImageScaleType;)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    move-result-object v0

    sget-object v1, Landroid/graphics/Bitmap$Config;->RGB_565:Landroid/graphics/Bitmap$Config;

    .line 101
    invoke-virtual {v0, v1}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->bitmapConfig(Landroid/graphics/Bitmap$Config;)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    move-result-object v0

    new-instance v1, Lcom/nostra13/universalimageloader/core/display/SimpleBitmapDisplayer;

    invoke-direct {v1}, Lcom/nostra13/universalimageloader/core/display/SimpleBitmapDisplayer;-><init>()V

    .line 102
    invoke-virtual {v0, v1}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->displayer(Lcom/nostra13/universalimageloader/core/display/BitmapDisplayer;)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    move-result-object v0

    invoke-virtual {v0}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->build()Lcom/nostra13/universalimageloader/core/DisplayImageOptions;

    move-result-object v0

    iput-object v0, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mOptions:Lcom/nostra13/universalimageloader/core/DisplayImageOptions;

    .line 104
    invoke-direct {p0}, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->getSelectedCount()I

    move-result v0

    invoke-virtual {p0}, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->getIntent()Landroid/content/Intent;

    move-result-object v1

    const-string v2, "LastSelectedCount"

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v1

    add-int/2addr v0, v1

    iput v0, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mSelectedCount:I

    .line 106
    new-instance v0, Ljava/util/concurrent/atomic/AtomicInteger;

    invoke-direct {v0, v3}, Ljava/util/concurrent/atomic/AtomicInteger;-><init>(I)V

    iput-object v0, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mAnimatingViewSize:Ljava/util/concurrent/atomic/AtomicInteger;

    .line 107
    return-void
.end method

.method private initWidgets()V
    .registers 4

    .prologue
    const/4 v2, 0x0

    .line 110
    const v0, 0x7f0a0008

    invoke-virtual {p0, v0}, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/support/v4/view/ViewPager;

    iput-object v0, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mViewPager:Landroid/support/v4/view/ViewPager;

    .line 112
    iget-object v0, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mViewPager:Landroid/support/v4/view/ViewPager;

    new-instance v1, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity$PictureViewPagerAdapter;

    invoke-direct {v1, p0}, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity$PictureViewPagerAdapter;-><init>(Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;)V

    invoke-virtual {v0, v1}, Landroid/support/v4/view/ViewPager;->setAdapter(Landroid/support/v4/view/PagerAdapter;)V

    .line 113
    iget-object v0, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mViewPager:Landroid/support/v4/view/ViewPager;

    iget v1, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mCurrentPos:I

    invoke-virtual {v0, v1}, Landroid/support/v4/view/ViewPager;->setCurrentItem(I)V

    .line 115
    const v0, 0x7f0a0078

    invoke-virtual {p0, v0}, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mPageCount:Landroid/view/View;

    .line 116
    const v0, 0x7f0a0079

    invoke-virtual {p0, v0}, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mCurPageTxt:Landroid/widget/TextView;

    .line 117
    const v0, 0x7f0a007a

    invoke-virtual {p0, v0}, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mAllPageTxt:Landroid/widget/TextView;

    .line 119
    const v0, 0x7f0a007b

    invoke-virtual {p0, v0}, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mImageBtnDelete:Landroid/widget/ImageView;

    .line 120
    const/16 v0, 0x8

    invoke-virtual {p0, v0}, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->setActionBarVisibility(I)V

    .line 122
    invoke-direct {p0}, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->validateCurPos()V

    .line 125
    iget-boolean v0, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mIsSelectMode:Z

    if-eqz v0, :cond_7c

    .line 126
    const v0, 0x7f0a007c

    invoke-virtual {p0, v0}, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/CheckBox;

    iput-object v0, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mCheckBox:Landroid/widget/CheckBox;

    .line 127
    iget-object v0, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mCheckBox:Landroid/widget/CheckBox;

    invoke-virtual {v0, v2}, Landroid/widget/CheckBox;->setVisibility(I)V

    .line 128
    iget-object v1, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mCheckBox:Landroid/widget/CheckBox;

    iget-object v0, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mPictures:Ljava/util/ArrayList;

    iget v2, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mCurrentPos:I

    invoke-virtual {v0, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/brixd/niceapp/community/model/PictureModel;

    invoke-virtual {v0}, Lcom/brixd/niceapp/community/model/PictureModel;->isChecked()Z

    move-result v0

    invoke-virtual {v1, v0}, Landroid/widget/CheckBox;->setChecked(Z)V

    .line 137
    :goto_76
    iget v0, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mCurrentPos:I

    invoke-direct {p0, v0}, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->updatePageCount(I)V

    .line 138
    return-void

    .line 130
    :cond_7c
    iget-object v0, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mImageBtnDelete:Landroid/widget/ImageView;

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 132
    const v0, 0x7f0a007d

    invoke-virtual {p0, v0}, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mSetCoverBtn:Landroid/widget/Button;

    .line 133
    iget-object v0, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mSetCoverBtn:Landroid/widget/Button;

    invoke-virtual {v0, v2}, Landroid/widget/Button;->setVisibility(I)V

    .line 134
    iget-object v0, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mPictures:Ljava/util/ArrayList;

    iget v1, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mCurrentPos:I

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/brixd/niceapp/community/model/PictureModel;

    invoke-virtual {v0}, Lcom/brixd/niceapp/community/model/PictureModel;->isCover()Z

    move-result v0

    invoke-direct {p0, v0}, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->updateSetBCoverBtnStatus(Z)V

    goto :goto_76
.end method

.method private initWidgetsActions()V
    .registers 3

    .prologue
    .line 147
    iget-object v0, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mViewPager:Landroid/support/v4/view/ViewPager;

    new-instance v1, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity$1;

    invoke-direct {v1, p0}, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity$1;-><init>(Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;)V

    invoke-virtual {v0, v1}, Landroid/support/v4/view/ViewPager;->setOnPageChangeListener(Landroid/support/v4/view/ViewPager$OnPageChangeListener;)V

    .line 172
    iget-boolean v0, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mIsSelectMode:Z

    if-eqz v0, :cond_19

    .line 173
    iget-object v0, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mCheckBox:Landroid/widget/CheckBox;

    new-instance v1, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity$2;

    invoke-direct {v1, p0}, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity$2;-><init>(Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;)V

    invoke-virtual {v0, v1}, Landroid/widget/CheckBox;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 229
    :goto_18
    return-void

    .line 199
    :cond_19
    iget-object v0, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mImageBtnDelete:Landroid/widget/ImageView;

    new-instance v1, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity$3;

    invoke-direct {v1, p0}, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity$3;-><init>(Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;)V

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 213
    iget-object v0, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mSetCoverBtn:Landroid/widget/Button;

    new-instance v1, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity$4;

    invoke-direct {v1, p0}, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity$4;-><init>(Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;)V

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    goto :goto_18
.end method

.method private setResult()V
    .registers 4

    .prologue
    .line 323
    new-instance v0, Landroid/content/Intent;

    invoke-direct {v0}, Landroid/content/Intent;-><init>()V

    .line 324
    .local v0, "data":Landroid/content/Intent;
    const-string v1, "Pictures"

    iget-object v2, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mPictures:Ljava/util/ArrayList;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    .line 325
    const/4 v1, -0x1

    invoke-virtual {p0, v1, v0}, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->setResult(ILandroid/content/Intent;)V

    .line 326
    return-void
.end method

.method private toogleActionBtnStatus()V
    .registers 4

    .prologue
    const/high16 v2, 0x3f800000

    const/4 v1, 0x0

    .line 232
    iget-object v0, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mAnimatingViewSize:Ljava/util/concurrent/atomic/AtomicInteger;

    invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicInteger;->get()I

    move-result v0

    if-lez v0, :cond_c

    .line 255
    :goto_b
    return-void

    .line 236
    :cond_c
    iget-object v0, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mPageCount:Landroid/view/View;

    invoke-virtual {v0}, Landroid/view/View;->getVisibility()I

    move-result v0

    if-nez v0, :cond_2e

    .line 237
    iget-object v0, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mPageCount:Landroid/view/View;

    invoke-direct {p0, v0, v2, v1}, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->animateAlpha(Landroid/view/View;FF)Landroid/animation/ObjectAnimator;

    .line 239
    iget-boolean v0, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mIsSelectMode:Z

    if-eqz v0, :cond_23

    .line 240
    iget-object v0, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mCheckBox:Landroid/widget/CheckBox;

    invoke-direct {p0, v0, v2, v1}, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->animateAlpha(Landroid/view/View;FF)Landroid/animation/ObjectAnimator;

    goto :goto_b

    .line 242
    :cond_23
    iget-object v0, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mImageBtnDelete:Landroid/widget/ImageView;

    invoke-direct {p0, v0, v2, v1}, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->animateAlpha(Landroid/view/View;FF)Landroid/animation/ObjectAnimator;

    .line 243
    iget-object v0, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mSetCoverBtn:Landroid/widget/Button;

    invoke-direct {p0, v0, v2, v1}, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->animateAlpha(Landroid/view/View;FF)Landroid/animation/ObjectAnimator;

    goto :goto_b

    .line 246
    :cond_2e
    iget-object v0, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mPageCount:Landroid/view/View;

    invoke-direct {p0, v0, v1, v2}, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->animateAlpha(Landroid/view/View;FF)Landroid/animation/ObjectAnimator;

    .line 248
    iget-boolean v0, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mIsSelectMode:Z

    if-eqz v0, :cond_3d

    .line 249
    iget-object v0, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mCheckBox:Landroid/widget/CheckBox;

    invoke-direct {p0, v0, v1, v2}, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->animateAlpha(Landroid/view/View;FF)Landroid/animation/ObjectAnimator;

    goto :goto_b

    .line 251
    :cond_3d
    iget-object v0, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mImageBtnDelete:Landroid/widget/ImageView;

    invoke-direct {p0, v0, v1, v2}, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->animateAlpha(Landroid/view/View;FF)Landroid/animation/ObjectAnimator;

    .line 252
    iget-object v0, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mSetCoverBtn:Landroid/widget/Button;

    invoke-direct {p0, v0, v1, v2}, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->animateAlpha(Landroid/view/View;FF)Landroid/animation/ObjectAnimator;

    goto :goto_b
.end method

.method private updatePageCount(I)V
    .registers 5
    .param p1, "position"    # I

    .prologue
    .line 297
    iget-object v0, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mCurPageTxt:Landroid/widget/TextView;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, ""

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    add-int/lit8 v2, p1, 0x1

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 298
    iget-object v0, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mAllPageTxt:Landroid/widget/TextView;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, " / "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mPictures:Ljava/util/ArrayList;

    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 299
    return-void
.end method

.method private updateSetBCoverBtnStatus(Z)V
    .registers 2
    .param p1, "isCover"    # Z

    .prologue
    .line 309
    return-void
.end method

.method private validateCurPos()V
    .registers 3

    .prologue
    .line 141
    iget v0, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mCurrentPos:I

    const/4 v1, 0x0

    invoke-static {v0, v1}, Ljava/lang/Math;->max(II)I

    move-result v0

    iput v0, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mCurrentPos:I

    .line 142
    iget v0, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mCurrentPos:I

    iget-object v1, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mPictures:Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v1

    add-int/lit8 v1, v1, -0x1

    invoke-static {v0, v1}, Ljava/lang/Math;->min(II)I

    move-result v0

    iput v0, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mCurrentPos:I

    .line 143
    return-void
.end method


# virtual methods
.method public finish()V
    .registers 2

    .prologue
    .line 337
    iget-boolean v0, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mIsDirty:Z

    if-eqz v0, :cond_7

    .line 338
    invoke-direct {p0}, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->setResult()V

    .line 340
    :cond_7
    invoke-super {p0}, Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity;->finish()V

    .line 341
    return-void
.end method

.method public onBackPressed()V
    .registers 3

    .prologue
    .line 330
    invoke-virtual {p0}, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->getActivity()Landroid/app/Activity;

    move-result-object v0

    const-string v1, "CommunityPictureGalleryClickBack"

    invoke-static {v0, v1}, Lcom/umeng/analytics/MobclickAgent;->onEvent(Landroid/content/Context;Ljava/lang/String;)V

    .line 332
    invoke-super {p0}, Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity;->onBackPressed()V

    .line 333
    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .registers 4
    .param p1, "savedInstanceState"    # Landroid/os/Bundle;

    .prologue
    .line 66
    invoke-super {p0, p1}, Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity;->onCreate(Landroid/os/Bundle;)V

    .line 67
    invoke-virtual {p0}, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->getWindow()Landroid/view/Window;

    move-result-object v0

    const/16 v1, 0x400

    invoke-virtual {v0, v1}, Landroid/view/Window;->addFlags(I)V

    .line 68
    const v0, 0x7f030016

    invoke-virtual {p0, v0}, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->setContentView(I)V

    .line 69
    const/4 v0, 0x0

    invoke-virtual {p0, v0}, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->setSwipeBackEnable(Z)V

    .line 71
    invoke-direct {p0}, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->initData()V

    .line 72
    invoke-direct {p0}, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->initWidgets()V

    .line 73
    invoke-direct {p0}, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->initWidgetsActions()V

    .line 74
    return-void
.end method

.method protected onPause()V
    .registers 2

    .prologue
    .line 86
    invoke-super {p0}, Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity;->onPause()V

    .line 88
    const-string v0, "PictureGalleryActivity"

    invoke-static {v0}, Lcom/umeng/analytics/MobclickAgent;->onPageEnd(Ljava/lang/String;)V

    .line 89
    invoke-static {p0}, Lcom/umeng/analytics/MobclickAgent;->onPause(Landroid/content/Context;)V

    .line 90
    return-void
.end method

.method protected onResume()V
    .registers 2

    .prologue
    .line 78
    invoke-super {p0}, Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity;->onResume()V

    .line 80
    const-string v0, "PictureGalleryActivity"

    invoke-static {v0}, Lcom/umeng/analytics/MobclickAgent;->onPageStart(Ljava/lang/String;)V

    .line 81
    invoke-static {p0}, Lcom/umeng/analytics/MobclickAgent;->onResume(Landroid/content/Context;)V

    .line 82
    return-void
.end method
